using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Security.Cryptography;
using QLNS.Control;

namespace QLNS
{
   public partial class frmDangNhap : DevComponents.DotNetBar.Office2007Form
    {
       NguoiDung_ctrl nguoidung = new NguoiDung_ctrl();
        
       public frmDangNhap()
        {
            InitializeComponent();
        }

       private void btDongY_Click(object sender, EventArgs e)
       {
           this.DialogResult = DialogResult.OK;
           if (staticClass.reLogin)
           {
               staticClass.reLogin = true;
           }            
       }

       private void btHuy_Click(object sender, EventArgs e)
       {
           this.DialogResult = DialogResult.Cancel;   
       }


       private void frmDangNhap_Load(object sender, EventArgs e)
       {
           this.txtUserName.Focus();
       }

       private void frmDangNhap_KeyPress(object sender, KeyPressEventArgs e)
       {
           if (e.KeyChar == 13)
           {
               this.DialogResult = DialogResult.OK;
           }
       }

       

    }
}